<?php

use App\Models\Menu;

if (!function_exists('menuTree')) {
    function menuTree($where = [])
    {
        return Menu::where('pid', 0)->where($where)->with('children')->get();
    }
}
